package com.inspur.hadoop.utils;

import java.net.URI;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;

public class FileSystemUtil {
	
	
	
	private static FileSystem fs=null;
	private static String HDFS_PATH="hdfs://192.168.56.56:24/";
	
	static {
		Configuration conf=new Configuration();
		try {
			fs = FileSystem.get(new URI(HDFS_PATH), conf,"chenxy");
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}
	
	public static FileSystem getFs() {
		return fs;
	}

}
